
package com.example.mychatapp.api;
1111111ssssss

import com.example.mychatapp.Constant;
import com.example.mychatapp.bean.ChaptersListBean;
import com.example.mychatapp.bean.ImageBean;
import com.example.mychatapp.bean.ListProjectBean;
import com.example.mychatapp.bean.UsuallyBean;
import com.example.rxhttp.request.base.BaseListResponse;
import com.example.rxhttp.request.base.BaseResponse;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Path;


/**
 * @author 53288
 * @description
 * @date 2021/1/2
 */
public interface ApiService {
	xueruifeng1111
    @GET(Constant.GET_WXARTICLE_LIST)
    Observable<ResponseBean<List<ChaptersListBean>>> getChaptersList();

    @GET("article/listproject/" + "{num}" + "/json")
    Observable<ResponseBean<ListProjectBean>> getListProject(@Path("num") String city);

    @Multipart
    @POST("member_upload_img")
    Observable<ResponseBean<ImageBean>> changeImageHead(@PartMap Map<String, RequestBody> params);

    @POST("member_upload_img")
    Observable<ResponseBean<ImageBean>> changeNewImageHead(@Body RequestBody body);

    @FormUrlEncoded
    @POST("member_logout")
    Observable<ResponseBean<UsuallyBean>> loginOut(@FieldMap Map<String, String> params);
}
